﻿<UserControl x:Class="Adaptive.ReactiveTrader.Client.UI.Shell.ShellView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:spotTiles="clr-namespace:Adaptive.ReactiveTrader.Client.UI.SpotTiles"
             xmlns:blotter="clr-namespace:Adaptive.ReactiveTrader.Client.UI.Blotter"
             xmlns:connectivity="clr-namespace:Adaptive.ReactiveTrader.Client.UI.Connectivity"
             xmlns:spotTiles1="clr-namespace:Adaptive.ReactiveTrader.Client.UI.SpotTiles;assembly=Adaptive.ReactiveTrader.Client"
             xmlns:blotter1="clr-namespace:Adaptive.ReactiveTrader.Client.UI.Blotter;assembly=Adaptive.ReactiveTrader.Client"
             xmlns:connectivity1="clr-namespace:Adaptive.ReactiveTrader.Client.UI.Connectivity;assembly=Adaptive.ReactiveTrader.Client"
             mc:Ignorable="d" 
             d:DesignHeight="600" 
             d:DesignWidth="800">
    <UserControl.Resources>
        <SolidColorBrush x:Key="BackgroundBrush" Color="#FF212A35" />
    </UserControl.Resources>
    <Grid Background="{StaticResource BackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <ContentPresenter Grid.Row="0" Content="{Binding SpotTiles, Mode=OneTime}">
            <ContentPresenter.ContentTemplate>
                <DataTemplate DataType="spotTiles1:ISpotTilesViewModel">
                    <spotTiles:SpotTilesView DataContext="{Binding Mode=OneWay}" />
                </DataTemplate>
            </ContentPresenter.ContentTemplate>
        </ContentPresenter>

        <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="7" Background="{StaticResource BackgroundBrush}" />
        
        <ContentPresenter Grid.Row="2" Content="{Binding Blotter, Mode=OneTime}">
            <ContentPresenter.ContentTemplate>
                <DataTemplate DataType="blotter1:IBlotterViewModel">
                    <blotter:BlotterView DataContext="{Binding Mode=OneWay}" />
                </DataTemplate>
            </ContentPresenter.ContentTemplate>
        </ContentPresenter>

        <ContentPresenter Grid.Row="3" Content="{Binding ConnectivityStatus, Mode=OneTime}">
            <ContentPresenter.ContentTemplate>
                <DataTemplate DataType="connectivity1:IConnectivityStatusViewModel">
                    <connectivity:ConnectivityStatusView DataContext="{Binding Mode=OneWay}" />
                </DataTemplate>
            </ContentPresenter.ContentTemplate>
        </ContentPresenter>
    </Grid>
</UserControl>
